<template>
  <div>
    <ConTitle :topTitle="topTitle"/>

    <el-card class="box-card add">
      <div class="show">
        <el-form ref="form" :model="form" label-width="100px" size="mini">
          <el-form-item label="*账号：">
            <el-input v-model="form.accInput" placeholder="请输入账号"></el-input>
          </el-form-item>

          <el-form-item label="*用户名称：">
            <el-input v-model="form.nameInput" placeholder="请输入用户名称"></el-input>
          </el-form-item>

          <el-form-item label="*密码：">
            <el-input placeholder="请输入密码" v-model="form.password" show-password></el-input>
          </el-form-item>

          <el-form-item label="*确认密码：">
            <el-input placeholder="请确认密码" v-model="form.againPassword" show-password></el-input>
          </el-form-item>

          <el-form-item label="*类型：">
            <el-radio v-model="form.radio" label="1">超级管理员(所有权限)</el-radio>
            <el-radio v-model="form.radio" label="2">管理员(拥有部分权限)</el-radio>
            <el-radio v-model="form.radio" label="3">观察员(只读权限)</el-radio>
          </el-form-item>

          <el-form-item label="账号描述:">
            <el-input type="textarea" v-model="form.desc" rows="5"></el-input>
          </el-form-item>

          <el-form-item>
            <el-button type="primary">确认</el-button>
            <el-button>取消</el-button>
          </el-form-item>
        </el-form>
      </div>
    </el-card>
  </div>
</template>

<script>
import ConTitle from "@/components/ConTitle";

export default {
  components: {
    ConTitle,
  },
  name: "addAccount",
  data() {
    return {
      form: {
        accInput: "",
        nameInput: "",
        password: "",
        againPassword: "",
        radio: "1",
        desc: "",
      },
      topTitle: {
        type: "子账号",
        text: "添加子账号",
        msg: "可添加当前组织的子账号，并为其分配权限。"
      },
    }
  },
}
</script>

<style scoped lang="scss">
.add .show{
  width: 300px;
  margin-left: 20px;
}
</style>